package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsCourseInfo = "cms_course_info"

func init() {
	var r = &CmsCourseInfo{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsCourseInfo struct {
	CourseId        int    `column:"course_id" primary:"true" modify:"false" json:"courseId" form:"courseId"`
	CourseName      string `json:"courseName" form:"courseName" column:"course_name" modify:"true"`
	Type            int    `json:"type" form:"type" column:"type" modify:"true"`
	Grade           int    `column:"grade" modify:"true" json:"grade" form:"grade"`
	Status          int    `json:"status" form:"status" column:"status" modify:"true"`
	MajorAbilityIds string `form:"majorAbilityIds" column:"major_ability_ids" modify:"true" json:"majorAbilityIds"`
	MapUrl          string `column:"map_url" modify:"true" json:"mapUrl" form:"mapUrl"`
	MisSection      string `json:"misSection" form:"misSection" column:"mis_section" modify:"true"`
	MisSectionId    int    `json:"misSectionId" form:"misSectionId" column:"mis_section_id" modify:"true"`
	CreateTime      string `json:"createTime" form:"createTime" column:"create_time" modify:"false"`
	UpdateTime      string `modify:"false" json:"updateTime" form:"updateTime" column:"update_time"`
	Duration        int    `json:"duration" form:"duration" column:"duration" modify:"true"`
}

func (r *CmsCourseInfo) Name() string {
	return RecordNameCmsCourseInfo
}
